import axios from 'axios'
let all = params => axios.get('/category/all',{params})
let list = (params) => axios.get('/category/sub', {params})
let add = (data) => axios.post('/category', data);
let updated = (id,data) => axios.put(`/category/${id}`,data);
let remove = (id) => axios.delete(`/category/${id}`);
export default{
    all,list,add,updated,remove
}